package cn.tedu.sp04.order.FeignFB;

import cn.tedu.sp01.pojo.User;
import cn.tedu.sp01.vo.JsonResult;
import cn.tedu.sp04.order.feign.UserFeignClient;
import org.springframework.stereotype.Component;

@Component
public class UserFeignClientFB implements UserFeignClient {
    @Override
    public JsonResult<User> getUser(Integer userId) {
        return JsonResult.err().msg("获取用户信息失败");
    }

    @Override
    public JsonResult addScore(Integer userId, Integer score) {
        return JsonResult.err().msg("增加用户积分失败");
    }
}
